package com.wyl.proxy.demo01

class Proxy(private val rent: Rent) : Rent by rent {
    override fun rent() {
        lookHouse()
        rent.rent()
        collectMoney()
    }

    fun lookHouse() {
        println("看房")
    }

    fun collectMoney() {
        println("收费")
    }
}